home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
cross
/
sasmv14.dms
/
sasmv14.adf
/
examples
/
rep.s
< prev
next >
Wrap
Text File
|
1993-05-22
|
1KB
|
68 lines
***************************************************
**
** Little Repeat Test © 1993 by Florian W. Sauer
** ~~~~~~~~~~~~~~~~~~
** Just to show how .repeat works..
**
** © 1993 by Infernal Byte Systems, INC.
**
***************************************************
heap O=256k
repcount set 0 ;count our repeats..
repcount2 set 0
reptimes equ 2+1 ;some constants
Null equ 0
.repeat reptimes {
dc.w "?!"
.repeat (reptimes-1) {
dc.b "-"
dc.w "?!"
repcount2 set repcount2+1
exp= repcount2
dc.b "-"
}
repcount set repcount+1
exp= repcount
}
.repeat 2^8 {
nop ;256 times of NOP... how usefully...
}
;or why not be cryptic?
;~~~~~~~~~~~~~~~~~~~~~~
value set Null
.repeat (2^(reptimes-1))-1 {
value set value+1
.repeat (2^(reptimes+1))-1 {
value set value+1
.repeat (2^(reptimes+1))-1 {
value set value+1
.repeat (2^(reptimes+1))-1 {
value set value+1
.repeat (2^(reptimes+1))-1 {
value set value+1
}
}
rts
}
nop
}
.say ! ;just print a NEWLINE
if value>100000
.say We are near to finish this assembly...
.say Don't give up!!!
else ;blabla
.say PLEASE WAIT...
endc
.repeat 2 {
exp= value
}
}
;end of this cool sourcecode...